﻿<catel:UserControl x:Class="Catwitter.Views.SocialMediaEntry"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:catel="using:Catel.Windows.Controls">

    <ContentControl>
        <!--<i:Interaction.Triggers>
            <i:EventTrigger EventName="MouseDoubleClick">
                <Commands:EventToCommand Command="{Binding OpenLink}" DisableAssociatedObjectOnCannotExecute="False" />
            </i:EventTrigger>
        </i:Interaction.Triggers>-->
        
        <catel:StackGrid>
            <catel:StackGrid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </catel:StackGrid.RowDefinitions>

            <catel:StackGrid.ColumnDefinitions>
                <ColumnDefinition Width="32" />
                <ColumnDefinition Width="*" />
            </catel:StackGrid.ColumnDefinitions>

            <Image Source="{Binding Photo}" Width="32" Height="32" />
            <TextBlock TextWrapping="Wrap" Text="{Binding MessagePreview}" ToolTipService.ToolTip="{Binding Message}" />

            <StackPanel>
                <TextBlock Text="{Binding Author}" HorizontalAlignment="Left" />
                <TextBlock Text="via" HorizontalAlignment="Left" />
                <TextBlock Text="{Binding ProviderName}" HorizontalAlignment="Left" />
            </StackPanel>

            <!--<Label Grid.Row="1" Grid.ColumnSpan="2" Content="{Binding Timestamp}" HorizontalAlignment="Right" />-->
        </catel:StackGrid>
    </ContentControl>

</catel:UserControl>
